<!--ISI MULAI-->

<div class="beftabel">
    <table border="0" cellspacing="0" cellpadding="0">
        <tr>
            <td><table width="400" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                        <td class="namaform"><div class="namaorang-u"><?php echo $nama ?></div>
                            <div class="namaorang2"><?php echo $nohp ?> | <?php echo $no_cic ?> | <?php echo $kelas ?></div></td>
                    </tr>
                    <tr>
                        <td class="bordertebal"><table width="400" border="0" cellspacing="0" cellpadding="0">                   
                                <?php for ($i = 0; $i < count($history); $i++) { ?>
                                    <tr>
                                        <td>
                                            <div class="namaorang3">
                                                Pembayaran <span class="count"><?php echo ($i + 1) ?></span>
												-
                                                <a target="_blank" href="<?php echo base_url()?>pendaftaran/daftar_con/cetak_kuitansi/<?php echo $id?>/<?php echo $kode?>/<?php echo $angkatan?>/<?php echo $history[$i]['TGL_BAYAR']?>">Cetak</a>
											</div>
                                            <div class="namaorang">
                                                Rp <?php echo number_format($history[$i]['JUMLAH'], 0, ',', '.') ?>
                                            </div>
                                            <?php
                                            $id_fo = $history[$i]['ID_FO'];
                                            $nama_fo = $this->db->get_where('user', array('ID' => $id_fo))->row_array();
                                            ?>
                                            <div class="siapakapan">
                                            <?php echo $this->date_func->date_konversion_format($history[$i]['TGL_BAYAR']) ?>-<?php echo $nama_fo['NAMA'] ?>
                                            </div>
                                        </td>
                                    </tr>   
                                <?php } ?>      
                                <tr>
                                    <td><div class="garishor"></div></td>
                                </tr>
                                <tr>
                                    <td><div class="namaorang3">Biaya yang Harus Dibayar</div>
                                        <div class="namaorang">Rp <?php echo number_format($bayar, 0, ',', '.') ?></div></td>
                                </tr>
                                <tr>
                                    <td><div class="garishor"></div></td>
                                </tr>
                                <tr>
                                    <td><div class="namaorang3">Biaya yang Sudah Dibayar</div>
                                        <div class="namaorang">Rp <?php echo number_format($sudah_bayar, 0, ',', '.') ?></div></td>
                                </tr>
                                <tr>
                                    <td><div class="garishor"></div></td>
                                </tr>
                                <tr>
                                    <td><div class="namaorang3">Biaya yang Belum Dibayar</div>
                                        <div class="namaorang">Rp <?php echo number_format(($bayar - $sudah_bayar), 0, ',', '.') ?></div></td>
                                </tr>
                            </table></td>
                    </tr>
                </table>
            </td>
            <td valign="top" class="jarak">&nbsp;</td>
            <td valign="top" class="tempatbutton">
                <?php if($this->session->userdata('status')=='SEDANG'){?>
                <input onClick="location.href='<?php echo base_url() ?>pendaftaran/daftar_con/bayar/<?php echo $id ?>/<?php echo $kode ?>/<?php echo $angkatan ?>'" name="button" type="submit" class="save" id="button" value="Bayar" />
                <?php } ?>
            </td>
        </tr>
    </table>
</div>
</div>
</td>
<td class="b6"></td>
</tr>
<tr>
    <td class="b4"></td>
    <td class="b5">    <div class="footer2">Copyright &copy;2011 CIC Team | Credits</div></td>
    <td class="b6"></td>
</tr>
<tr>
    <td id="b7"></td>
    <td id="b8"></td>
    <td id="b9"></td>
</tr>
</table>

